home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / WE-BREAK.ZIP / P4_READ.TXT < prev    next >
Encoding:
Text File  |  1997-02-28  |  6.9 KB  |  182 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "Paul's Primitive POV People", or "P4".
  6. //
  7. // Created by: Paul T. Dawson
  8. //             ptdawson@voicenet.com
  9. //             http://www.voicenet.com/~ptdawson
  10. //
  11. // Version 0.3 - February 28, 1997
  12. //
  13. //------------------------------------------------------------------->
  14. //------------------------------------------------------------------->
  15.  
  16. This is a very quick introduction to the "P4" include file, which lets
  17. you build semi-realistic raytraced people.
  18.  
  19. Files needed:
  20.  
  21.         1 - P4DEF_00.INC
  22.         2 - P4_MAIN.INC
  23.         3 - P4_TEST.POV
  24.  
  25. 1 - The P4DEF_00.INC file lists all of the parameters and settings for
  26.     one person. Make a copy of this file, for example: P4DEF_01.INC.
  27.     Then edit the copy to make any changes you want.
  28.  
  29. 2 - The big file is P4_MAIN.INC. This has a little bit of everything
  30.     in it. Some of the sections are very sloppy, and/or un-artistic!
  31.  
  32. 3 - To test your new person, run P4_TEST.POV. You will have to edit
  33.     that a little, so it calls the correct P4DEF_??.INC file. The test
  34.     file has several camera settings, to zoom in on different areas.
  35.  
  36. //------------------------------------------------------------------->
  37. //------------------------------------------------------------------->
  38.  
  39. The test file, and YOUR scene files, should include just the proper
  40. P4DEF_??.INC files. Those will call P4_MAIN.INC, and then your main
  41. file gets an object called "One_Person" back. Then just show that!
  42.  
  43. //------------------------------------------------------------------->
  44. //------------------------------------------------------------------->
  45.  
  46. OK, here are the legal parameters for the people. Please, if you make
  47. any additions to these, send them to me, and I'll add them to the big
  48. "official" version. There's a lot of room for improvements here!
  49.  
  50. These all can have any POV texture, including (but not limited to) a
  51. pigment, texture, normal, image_map, etc.
  52.  
  53.         P4_Eye_Texture
  54.         P4_Glasses_Texture
  55.         P4_Hair_Texture
  56.         P4_Hat_Texture
  57.         P4_Lip_Texture
  58.         P4_Shirt_Texture
  59.         P4_Shoe_Texture
  60.         P4_Shorts_Texture
  61.         P4_Skin_Texture
  62.  
  63. //------------------------------------------------------------------->
  64. //------------------------------------------------------------------->
  65.  
  66. These each take one integer number.
  67.  
  68.         P4_Eye_Type     = (1 only)
  69.         P4_Glasses_Type = (0 no glasses) (1 glasses)
  70.         P4_Hair_Type    = (1 short) (2 frizzy) (3 long)
  71.         P4_Hand_Type    = (1 fist) (2 fingers)
  72.         P4_Hat_Type     = (1 painters) (2 propellor beanie)
  73.                           (3 helmet) (4 D.P. Gumby) (5 baseball)
  74.         P4_Mouth_Type   = (1 straight) (2 open) (3 smile) (4 frown)
  75.                           (5 narrow) Note: those are all pretty bad!
  76.         P4_Nose_Type    = (1 small) (2 medium)
  77.         P4_Shirt_Type   = (2 only) Note: There is no type 1.
  78.         P4_Shoe_Type    = (1 high top) (2 skates) (3 low top)
  79.         P4_Shorts_Type  = (1 baggy) (2 tight) (3 medium)
  80.  
  81. As you can see, there aren't too many choices! Send in any great new
  82. things that you add to this (please), and then I can keep on releasing
  83. more and better (and *free*, doh!) updates to this!
  84.  
  85. //------------------------------------------------------------------->
  86. //------------------------------------------------------------------->
  87.  
  88. These sizes can be almost any positive number. Experiment!
  89.  
  90.         P4_Leg_Length = 30
  91.         P4_Neck_Height = 3
  92.         P4_Shirt_Height = 24
  93.         P4_Shorts_Height = 8
  94.  
  95. //------------------------------------------------------------------->
  96. //------------------------------------------------------------------->
  97.  
  98. The rotation values are a real mess. Each object starts out at <0,0,0>,
  99. and it gets rotated before it is moved. It's the last minute for the IRTC,
  100. so I can't explain these - sorry!!!
  101.  
  102. One thing that's really goofy - The person is facing you, and LEFT means
  103. the left side of your SCREEN. It seemed easier at first to arrange it
  104. this way, now I'm not too sure!?!
  105.  
  106.         P4_Hat_Rotate = < 20, -40, 0 >
  107.         P4_Neck_Rotate = < 0, 0, 0 >
  108.         P4_Waist_Rotate = < -10, 0, 0 >
  109.         
  110.         P4_Left_Hand_Rotate = < 0, 0, 0 >
  111.         P4_Right_Hand_Rotate = < 0, 0, 0 >
  112.  
  113.         P4_Left_Elbow_Rotate = < 40, -110, 0 >
  114.         P4_Right_Elbow_Rotate = < 0, 70, 0 >
  115.  
  116.         P4_Left_Eyelid_Rotate = -40
  117.         P4_Right_Eyelid_Rotate = -40
  118.  
  119.         P4_Left_Knee_Rotate = < -20, 0, 0 >
  120.         P4_Right_Knee_Rotate = < -60, 20, 0 >
  121.  
  122.         P4_Left_Leg_Rotate = < 20, 0, -5 >
  123.         P4_Right_Leg_Rotate = < 0, 0, 30 >
  124.  
  125.         P4_Left_Shoulder_Rotate = < -60, -10, 30 >
  126.         P4_Right_Shoulder_Rotate = < -30, -20, -50 >
  127.  
  128. //------------------------------------------------------------------->
  129. //------------------------------------------------------------------->
  130.  
  131. Always set the "holding flag" to false, unless you want your person
  132. to carry something.
  133.  
  134.         P4_Holding_Flag = true
  135.  
  136.         P4_Holding_Object =
  137.                 cylinder { <6,0,0><6,2,0>,6 pigment{Red} }
  138.  
  139. Note: Any POV object is alright to use for the object.
  140.  
  141. //------------------------------------------------------------------->
  142. //------------------------------------------------------------------->
  143.  
  144. Here is another optional object - a "bracelet". This also has a flag
  145. to set on/off. This prevents duplicate bracelets! The bracelet should
  146. be at <0,0,0>, just like a standard torus. Then the P4 system moves
  147. it onto the person's arm!
  148.  
  149.         P4_Bracelet_Flag = true
  150.  
  151.         P4_Bracelet_Object =
  152.                 torus { 3, 1 pigment{Red} }
  153.  
  154. //------------------------------------------------------------------->
  155. //------------------------------------------------------------------->
  156.  
  157. Despite my attempts at using "realistic inches" as units, the people
  158. always seem to end up 8 or 9 feet tall. This variable lets you scale
  159. the person down to a normal size. Use the P4_TEST.POV scene to see how
  160. tall your person actually is!
  161.  
  162.         P4_Total_Scale = 80/100
  163.  
  164. //------------------------------------------------------------------->
  165. //------------------------------------------------------------------->
  166.  
  167. This is the height to move the person up, so his/her feet are on the
  168. floor. Sorry, but because of bendable legs, this has to be adjusted
  169. manually (by YOU). 8-)
  170.  
  171.         P4_Y_Adjust = 32.5
  172.  
  173. //------------------------------------------------------------------->
  174. //------------------------------------------------------------------->
  175.  
  176. Well, that's all for this time. This is version 0.3, and it's free,
  177. and I hope you all have fun with it!
  178.  
  179. //------------------------------------------------------------------->
  180. //------------------------------------------------------------------->
  181.  
  182.